package cn.zlj.nmcc.dto;

import cn.zlj.nmcc.domain.Course;
import cn.zlj.nmcc.domain.CourseDetail;
import cn.zlj.nmcc.domain.CourseMarket;
import cn.zlj.nmcc.domain.CourseResource;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseDto {

    // 课程
    @Valid // 开启JSR303校验
    private Course course;
    // 课程详情
    private CourseDetail courseDetail;
    // 课程营销
    private CourseMarket courseMarket;
    // 课程资源
    private CourseResource courseResource;
    // 课程老师
    @NotEmpty(message = "集合不能为空") // 集合不能为空
    private List<Long> teacherIds;

}